package com.iot.iotplus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.iot.iotplus.base.CommonPage;
import com.iot.iotplus.base.Result;
import com.iot.iotplus.entity.Product;

public interface ProductService{
    //查询所有Product并进行分页
    Result<CommonPage<Product>> productList(Integer pageNum, Integer pageSize);

    Result<Product> getProduct(Long productID);

    Result<?> addProduct(Product product);

    Result<?> deleteProduct(Long productID);

    Result<?> bytIDGetProducts(String tenantId);
}
